CIS=CT32B1_CAP0, CTM=TIMER_MODE_EVERY_RI, SElCC=RISING_EDGE_OF_CT32B
Count Control Register. The CTCR selects between Timer and Counter mode, and in Counter mode selects the signal and edge(s) for counting.
CTM | Counter/Timer Mode. This field selects which rising PCLK edges can increment Timer’s Prescale Counter (PC), or clear PC and increment Timer Counter (TC). If Counter mode is selected in the CTCR, bits 2:0 in the Capture Control Register (CCR) must be programmed as 000. 0 (TIMER_MODE_EVERY_RI): Timer Mode: every rising PCLK edge 1 (COUNTER_MODE_TC_IS_): Counter Mode: TC is incremented on rising edges on the CAP input selected by bits 3:2. 2 (COUNTER_MODE_TC_IS_): Counter Mode: TC is incremented on falling edges on the CAP input selected by bits 3:2. 3 (COUNTER_MODE_TC_IS_): Counter Mode: TC is incremented on both edges on the CAP input selected by bits 3:2. |
CIS | Count Input Select. In counter mode (when bits 1:0 in this register are not 00), these bits select which CAP pin or comparator output is sampled for clocking. If Counter mode is selected in the CTCR, the 3 bits for that input in the Capture Control Register (CCR) must be programmed as 000. Values 0x2 to 0x3 are reserved. 0 (CT32B1_CAP0): CT32B1_CAP0 1 (CT32B1_CAP1): CT32B1_CAP1 |
ENCC | Setting this bit to 1 enables clearing of the timer and the prescaler when the capture-edge event specified in bits 7:5 occurs. |
SElCC | When bit 4 is a 1, these bits select which capture input edge will cause the timer and prescaler to be cleared. These bits have no effect when bit 4 is low. Values 0x3 to 0x7 are reserved. 0 (RISING_EDGE_OF_CT32B): Rising Edge of CT32B1_CAP0 clears the timer (if bit 4 is set) 1 (FALLING_EDGE_OF_CT32): Falling Edge of CT32B1_CAP0 clears the timer (if bit 4 is set) 2 (RISING_EDGE_OF_CT32B): Rising Edge of CT32B1_CAP1 clears the timer (if bit 4 is set) 3 (FALLING_EDGE_OF_CT32): Falling Edge of CT32B1_CAP1 clears the timer (if bit 4 is set) |
RESERVED | Reserved, user software should not write ones to reserved bits. The value read from a reserved bit is not defined. |